package biz.microplus.information.bean;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 信息变更记录数据模型
 */
@Entity
public class InformationLogBean extends BaseBean {

    public InformationLogBean(){}

    public InformationLogBean(int informationId, int userId, String afterStatus, String beforeStatus){
        this.informationId = informationId;
        this.userId = userId;
        this.afterStatus = afterStatus;
        this.beforeStatus = beforeStatus;
    }

    /**
     * 标识
     */
    @Id
    private int id;
    /**
     * 信息ID
     */
    private int informationId;

    /**
     * 操作人ID
     */
    private int userId;

    /**
     * 变更内容
     */
    private String content;

    /**
     * 变更后状态
     */
    private String afterStatus;

    /**
     * 变更前状态
     */
    private String beforeStatus;

    /**
     * 删除时间戳
     */
    private int deletedAt;
    /**
     * 创建时间戳
     */
    private int createdAt;
    /**
     * 更新时间戳
     */
    private int updatedAt;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInformationId() {
        return informationId;
    }

    public void setInformationId(int informationId) {
        this.informationId = informationId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAfterStatus() {
        return afterStatus;
    }

    public void setAfterStatus(String afterStatus) {
        this.afterStatus = afterStatus;
    }

    public String getBeforeStatus() {
        return beforeStatus;
    }

    public void setBeforeStatus(String beforeStatus) {
        this.beforeStatus = beforeStatus;
    }

    public int getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(int deletedAt) {
        this.deletedAt = deletedAt;
    }

    public int getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(int createdAt) {
        this.createdAt = createdAt;
    }

    public int getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(int updatedAt) {
        this.updatedAt = updatedAt;
    }
}